package com.yexiao.cofe.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yexiao.cofe.business.pojo.OrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lkl
 * @since 2025/3/28
 */
@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {

    @Select("select * from order_item where order_id = #{orderId}")
    List<OrderItem> listOrderItemByOrderId(Long orderId);
}
